﻿using MyBot.Datas;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RgChannelBot
{
    public struct DatabaseConfig
    {
        public string IpAddress { get; set; }
        public int Port { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public string Database { get; set; }
    }

    public class Config
    {
        public OpenApiAccessInfo BotData { get; set; } = new OpenApiAccessInfo();
        public DatabaseConfig DatabaseConfig { get; set; } = new DatabaseConfig();
        public string GuildId { get; set; } = "主频道ID";
        public string TicketGroupId { get; set; } = "工单分组";
        public string BotChannelId { get; set; } = "机器人频道ID";

        public Dictionary<string, int> GroupPermissions { get; set; } = new Dictionary<string, int>()
        {
            {"abcdef", 1 }, {"aaa", 2}, {"bbb", 3}
        };

        public string AdminChannelId { get; set; } = "管理组子频道ID";

        public List<ConnectionData> Servers { get; set; } = new List<ConnectionData>();
    }
}